#include <stdio.h>
#include <stdlib.h>

int main (int argc, char const* argv[])
{
    int i, n, a, b;

    scanf("%d", &n);
    for (i = 1; i <= n; i++) {
        scanf("%d %d", &a, &b);
        printf("Scenario #%d:\n", i);
        printf("%d.", a*b);
        if (a % 2 != 0 && b % 2 != 0) {
            printf("41");
        } else {
            printf("00");
        }
        printf("\n");
        printf("\n");
    }

    return 0;
}
